package com.core.framework.security.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.core.framework.security.SecurityStatic;
/**
 * 系统URL安全处理 以及登录信息处理
 * @author 刘涛
 * @since Jul 5, 2012
 */
public class SecurityUrlFilter implements Filter ,SecurityStatic{
	public void init(FilterConfig filterConfig) throws ServletException 
	{
		
	}
	public void doFilter(ServletRequest req, ServletResponse res,FilterChain chain) throws IOException, ServletException 
	{
				HttpServletRequest request = (HttpServletRequest) req;
				HttpServletResponse response = (HttpServletResponse) res;
				String uri = request.getRequestURI();
				System.err.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>"+uri);
				if(uri.contains(checkAction))
				{
					
				}
				else
				{
					
				}
				//request.getRequestDispatcher("/").forward(request, response);
				//chain.doFilter(request, response);
	}

	public void destroy() 
	{
		
	}
}
